/*
 * @Author: MarioGo
 * @Date: 2021-11-22 12:05:17
 * @LastEditTime: 2021-11-22 12:13:01
 * @LastEditors: MarioGo
 * @Description: 文件描述
 * @FilePath: /elm-admin-vite/src/utils/style-import.ts
 * 可以输入预定的版权声明、个性签名、空行等
 */
import { App } from 'vue'
import { ElIcon, ElLoading, ElCard, ElButton,ElRow } from 'element-plus'
import 'element-plus/es/components/button/style/css'
/**
 * 按需导入 Element Plus 组件
 * Vite 插件 https://github.com/element-plus/vite-plugin-element-plus
 * @param app {App}
 */
export default function styleImport(app: App) {
  ;[ElButton, ElCard, ElLoading, ElIcon,ElRow].forEach((v) => {
    app.use(v)
  })
  return app
}